//package com.chenl.provider.feign.dto.common;
//
//import feign.RequestInterceptor;
//import feign.RequestTemplate;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.context.properties.EnableConfigurationProperties;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.util.StringUtils;
//
//
//@Configuration
//@EnableConfigurationProperties(AppProperties.class)
//public class SdkFeignConfig implements  RequestInterceptor {
//
//    @Autowired
//    private AppProperties appProperties ;
//
//    @Override
//    public void apply(RequestTemplate requestTemplate) {
//        if(null != appProperties){
//            if(!StringUtils.isEmpty(appProperties.getAppSecret())){
//                requestTemplate.header("x-dcop-app-secret", appProperties.getAppSecret());
//            }
//        }
//    }
//}
